home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 026a / strdct.zip / STRDCT.H < prev    next >
Text File  |  1991-01-24  |  1KB  |  40 lines

  1. /*  Program ...:  Strdct.H
  2.     Author ....:  Erik A McBeth
  3.     Date ......:  February 1, 1990
  4.                   April 4, 1990
  5.     Version ...:  Use with
  6.                   Strdct.C
  7.                   Strflp.C
  8.                   Strrev.C
  9.  
  10.     Header file which contains various definitions and information
  11.     on how functions are called.
  12.  
  13.  
  14. */
  15.  
  16.  
  17. #define TURBOC 1 /* Set true if compiler supports "pseudoregisters" like
  18.                     Turbo C, this way you don't have to link in
  19.                     getregs.obj */
  20.  
  21. #define MK_LONG(hi,low)  (((unsigned long)(hi) << 16) | (unsigned)(low))
  22. #define isdigit(ch) (ch >= '0' && ch <= '9')
  23. #define isspace(ch) (ch==' ' || ch=='\t' || ch=='\r')
  24.  
  25. /* These are function "prototypes", some compilers don't like
  26.    these so you can delete them if they give a problem */
  27. int Strdct(unsigned char far *str);
  28. int Strflp(unsigned char *str);
  29. int Strrev(unsigned char *str);
  30. int Getregs(void);
  31.  
  32. unsigned DS, BX, ES, DI, CX;
  33.  
  34. #if TURBOC
  35.  
  36. #define Getregs() (DS=_DS, BX=_BX, ES=_ES, DI=_DI, CX=_CX)
  37.  
  38. #endif
  39.  
  40.